package JAVASE522;

public class StringBack {
    public static void main(String[] argc){
        System.out.println(back("abc"));
    }
    public static String back(String s){
        String result="";
        for (int i = s.length()-1; i >= 0; i--) {
            char c=s.charAt(i);
            result=result+c;
        }
        return result;
    }

}
